<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>管理后台</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link href="/favicon.ico" type="image/x-icon" rel="shortcut icon" />
    <!-- Bootstrap 3.3.4 -->
    <link href="/public/admin/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/public/admin/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="/public/admin/css/animate.css" rel="stylesheet">
    <link href="/public/admin/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="/public/admin/css/style.css?v=4.0.0" rel="stylesheet">
    <link href="/public/admin/css/ratuo.css" rel="stylesheet">

    <script src="/public/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="/public/admin/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/public/admin/js/common.js"></script>
    <script src="/public/admin/js/plugins/layer/layer.min.js"></script>
    <script src="/public/admin/js/myAjax.js"></script>
    <script src="/public/admin/js/jquery.validate.js"></script>

    <link href="/public/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <script src="/public/admin/js/plugins/iCheck/icheck.min.js"></script>

    <script src="/public/admin/js/article.js"></script>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>{:lang('time_index')}</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="box">
                                <a class="btn btn-primary" href="javascript:;"  onclick="sendTime('1f30414509')"><i class="fa fa-link">开关机</i></a>
                                <a class="btn btn-primary" href="javascript:;"  onclick="sendTime('1f30415109')"><i class="fa fa-link">开始计时</i></a>
                                <a class="btn btn-primary" href="javascript:;"  onclick="sendTime('1f30415009')"><i class="fa fa-link">停止计时</i></a>
                                <a class="btn btn-primary" href="javascript:;"  onclick="sendTime('1f30414f09')"><i class="fa fa-link">复位计时</i></a>
                                <a class="btn btn-primary" href="javascript:;"  onclick="sendTime('1f30415409')"><i class="fa fa-link">亮度调节</i></a>
                                <a class="btn btn-primary" href="javascript:;"  onclick="sendTime('1f30414b09')"><i class="fa fa-link">时钟显示</i></a>
                                <a class="btn btn-primary" href="javascript:;"  onclick="sendTime('1f30414c09')"><i class="fa fa-link">秒正计时</i></a>
                                <a class="btn btn-primary" href="javascript:;"  onclick="sendTime('1f30414d09')"><i class="fa fa-link">秒倒计时</i></a>
                                <a class="btn btn-primary" href="javascript:;"  onclick="sendTime('1f30414e09')"><i class="fa fa-link">秒表正计时</i></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<input id="handle_status" value="" hidden="hidden">
<input id="kind_id" value="0" hidden="hidden">
<script>
    function sendTime(act) {
        var host = '127.0.0.1';
        var port = 777;
        $.ajax({
            url : '/index.php/Admin/time/sendTime',
            type : "post",
            data : {act:act,port:port,host:host},
            dataType : "json",
            success:function(data){
                console.log(data)
                if (data.status == 0) {
                    top.layer.msg(data.message);
                } else {
                    top.layer.msg(data.message);
                }
            }
        });
    }

</script>
</body>

</html>
